from utils.api import API
from django.conf.urls import url
from log.forms import *
from log.views import views_log

baseUrl = "/api/log/"

getIPListAPI = API(GetIPListForm, method='POST', moduleUrl='ipadmin/', urlPrefix=baseUrl)
IPLogScreenAPI = API(IPLogScreenForm, method='POST', moduleUrl='ipscreen/', urlPrefix=baseUrl)
getLogAPI = API(GetLogForm, method='POST', moduleUrl='list/', urlPrefix=baseUrl)
logScreenAPI = API(LogScreenForm, method='POST', moduleUrl='screen/', urlPrefix=baseUrl)
logCheckAPI = API(LogCheckForm, method='POST', moduleUrl='check/', urlPrefix=baseUrl)

urlpatterns = [
    url(getIPListAPI.moduleUrl, views_log.getIPList),
    url(IPLogScreenAPI.moduleUrl, views_log.IPLogScreen),
    url(getLogAPI.moduleUrl, views_log.getLog),
    url(logScreenAPI.moduleUrl, views_log.logScreen),
    url(logCheckAPI.moduleUrl, views_log.logCheck),
]